package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.io.Serializable;

/**
 * 机器广告图(Ad)实体类
 *
 * @author makejava
 * @since 2022-09-14 14:49:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "ad")
public class EntityAd implements Serializable {
    private static final long serialVersionUID = 387295918993005351L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 单位Id
     */
    private Long comId;
    /**
     * 1：消费机，2：门禁机
     */
    private Integer deviceType;
    
    private Integer type;
    /**
     * 地址
     */
    private String url;
    
    private Integer sort;
    /**
     * 生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date updateTime;
}

